Use XMLHttpRequest (XHR) objects to interact with servers.


Properties

Name Returns Notes Example
timeout Long
responseUrl String
status int
statusText String
readyState int
allResponseHeaders String
responseType XMLHttpRequestResponseType
response Response
responseText String

Methods

Name Returns Notes Example
open ( method, url ) void The XMLHttpRequest.open() method initializes a request
open ( method, url, async ) void The XMLHttpRequest.open() method initializes a request
open ( method, url, async, username ) void The XMLHttpRequest.open() method initializes a request
open ( method, url, async, username, password ) void The XMLHttpRequest.open() method initializes a request
setRequestHeader ( header, value ) void The XMLHttpRequest.setRequestHeader() method sets the value of an HTTP request header. You must call setRequestHeader()after open(), but before send(). If this method is called several times with the same header, the values are merged into one single request header.
send ( ) void
send ( data ) void
abort ( ) void
getResponseHeader ( name ) String
addEventListener ( type, callback ) void
removeEventListener ( type, callback ) void
dispatchEvent ( type, params ) void